#!/bin/bash
while true  
do  
    if ps aux | grep -v grep | grep run.php >/dev/null 2>&1  
    then   
        echo "run.php is run properly!" >>/var/www/dnspod/run_ok.log
    else  
        php /var/www/dnspod/run.php >>/var/www/dnspod/phperr.log &   
        echo "run.php the process does not exist!" >> /var/www/dnspod/run_err.log   
    fi   
sleep 10  
done
